/*
 * XML Type:  XMenu
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XMenu
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget;


/**
 * An XML XMenu(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public interface XMenu extends com.seedwill.xul.core.XIdentified
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XMenu.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s790E6810E76A77BB212DD6D4DA094898").resolveHandle("xmenu3909type");
    
    /**
     * Gets the "title" element
     */
    java.lang.String getTitle();
    
    /**
     * Gets (as xml) the "title" element
     */
    org.apache.xmlbeans.XmlString xgetTitle();
    
    /**
     * Sets the "title" element
     */
    void setTitle(java.lang.String title);
    
    /**
     * Sets (as xml) the "title" element
     */
    void xsetTitle(org.apache.xmlbeans.XmlString title);
    
    /**
     * Gets the "hotkey" element
     */
    java.lang.String getHotkey();
    
    /**
     * Gets (as xml) the "hotkey" element
     */
    org.apache.xmlbeans.XmlString xgetHotkey();
    
    /**
     * Sets the "hotkey" element
     */
    void setHotkey(java.lang.String hotkey);
    
    /**
     * Sets (as xml) the "hotkey" element
     */
    void xsetHotkey(org.apache.xmlbeans.XmlString hotkey);
    
    /**
     * Gets the "icon" element
     */
    java.lang.String getIcon();
    
    /**
     * Gets (as xml) the "icon" element
     */
    org.apache.xmlbeans.XmlString xgetIcon();
    
    /**
     * Sets the "icon" element
     */
    void setIcon(java.lang.String icon);
    
    /**
     * Sets (as xml) the "icon" element
     */
    void xsetIcon(org.apache.xmlbeans.XmlString icon);
    
    /**
     * Gets array of all "children" elements
     */
    com.seedwill.xul.widget.XMenu[] getChildrenArray();
    
    /**
     * Gets ith "children" element
     */
    com.seedwill.xul.widget.XMenu getChildrenArray(int i);
    
    /**
     * Returns number of "children" element
     */
    int sizeOfChildrenArray();
    
    /**
     * Sets array of all "children" element
     */
    void setChildrenArray(com.seedwill.xul.widget.XMenu[] childrenArray);
    
    /**
     * Sets ith "children" element
     */
    void setChildrenArray(int i, com.seedwill.xul.widget.XMenu children);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "children" element
     */
    com.seedwill.xul.widget.XMenu insertNewChildren(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "children" element
     */
    com.seedwill.xul.widget.XMenu addNewChildren();
    
    /**
     * Removes the ith "children" element
     */
    void removeChildren(int i);
    
    /**
     * Gets the "asSeparator" element
     */
    boolean getAsSeparator();
    
    /**
     * Gets (as xml) the "asSeparator" element
     */
    org.apache.xmlbeans.XmlBoolean xgetAsSeparator();
    
    /**
     * Sets the "asSeparator" element
     */
    void setAsSeparator(boolean asSeparator);
    
    /**
     * Sets (as xml) the "asSeparator" element
     */
    void xsetAsSeparator(org.apache.xmlbeans.XmlBoolean asSeparator);
    
    /**
     * Gets the "hidden" element
     */
    boolean getHidden();
    
    /**
     * Gets (as xml) the "hidden" element
     */
    org.apache.xmlbeans.XmlBoolean xgetHidden();
    
    /**
     * Sets the "hidden" element
     */
    void setHidden(boolean hidden);
    
    /**
     * Sets (as xml) the "hidden" element
     */
    void xsetHidden(org.apache.xmlbeans.XmlBoolean hidden);
    
    /**
     * Gets the "disabled" element
     */
    boolean getDisabled();
    
    /**
     * Gets (as xml) the "disabled" element
     */
    org.apache.xmlbeans.XmlBoolean xgetDisabled();
    
    /**
     * Sets the "disabled" element
     */
    void setDisabled(boolean disabled);
    
    /**
     * Sets (as xml) the "disabled" element
     */
    void xsetDisabled(org.apache.xmlbeans.XmlBoolean disabled);
    
    /**
     * Gets the "action" element
     */
    com.seedwill.xul.widget.XAction getAction();
    
    /**
     * Sets the "action" element
     */
    void setAction(com.seedwill.xul.widget.XAction action);
    
    /**
     * Appends and returns a new empty "action" element
     */
    com.seedwill.xul.widget.XAction addNewAction();
    
    /**
     * Gets the "contexted" element
     */
    boolean getContexted();
    
    /**
     * Gets (as xml) the "contexted" element
     */
    org.apache.xmlbeans.XmlBoolean xgetContexted();
    
    /**
     * Sets the "contexted" element
     */
    void setContexted(boolean contexted);
    
    /**
     * Sets (as xml) the "contexted" element
     */
    void xsetContexted(org.apache.xmlbeans.XmlBoolean contexted);
    
    /**
     * Gets the "cate" element
     */
    com.seedwill.xul.widget.XMenuCate getCate();
    
    /**
     * Sets the "cate" element
     */
    void setCate(com.seedwill.xul.widget.XMenuCate cate);
    
    /**
     * Appends and returns a new empty "cate" element
     */
    com.seedwill.xul.widget.XMenuCate addNewCate();
    
    /**
     * Gets the "tip" element
     */
    java.lang.String getTip();
    
    /**
     * Gets (as xml) the "tip" element
     */
    org.apache.xmlbeans.XmlString xgetTip();
    
    /**
     * Sets the "tip" element
     */
    void setTip(java.lang.String tip);
    
    /**
     * Sets (as xml) the "tip" element
     */
    void xsetTip(org.apache.xmlbeans.XmlString tip);
    
    /**
     * Gets the "type" element
     */
    java.lang.String getType();
    
    /**
     * Gets (as xml) the "type" element
     */
    org.apache.xmlbeans.XmlString xgetType();
    
    /**
     * Sets the "type" element
     */
    void setType(java.lang.String type);
    
    /**
     * Sets (as xml) the "type" element
     */
    void xsetType(org.apache.xmlbeans.XmlString type);
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.seedwill.xul.widget.XMenu newInstance() {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.seedwill.xul.widget.XMenu newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static com.seedwill.xul.widget.XMenu parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.seedwill.xul.widget.XMenu parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.seedwill.xul.widget.XMenu parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.seedwill.xul.widget.XMenu parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.seedwill.xul.widget.XMenu parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static com.seedwill.xul.widget.XMenu parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.seedwill.xul.widget.XMenu parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XMenu parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XMenu parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XMenu) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
